package com.qingzhuge.exception;


import com.qingzhuge.common.HttpCode;

import java.util.Map;

/**
 * @author : zero.xiao
 * @description : 接口错误
 * @modified :
 */
public class InstanceException extends BaseException {
    public InstanceException() {
        super(HttpCode.INTERNAL_SERVER_ERROR.message());
    }

    public InstanceException(Throwable t) {
        super(t);
    }

    public InstanceException(Map data) {
        super(data);
    }

    public InstanceException(String message) {
        super(message);
    }

    public InstanceException(String message, Throwable ex) {
        super(message, ex);
    }

    @Override
    public int getCode() {
        return HttpCode.INTERNAL_SERVER_ERROR.value();
    }
}
